package com.ruoyi.writer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 写作对象 chapter
 * 
 * @author fst
 * @date 2025-04-10
 */
public class Chapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 章节ID */
    private Long id;

    /** 关联小说ID */
    private Long novelId;

    /** 章节序号 */
    private String orderNum;

    /** 章节标题 */
    private String chapterTitle;

    /** 章节内容 */
    private String content;

    /** 是否需要订阅 */
    private Long subscribe;

    /** 章节数 */
    private String wordCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNovelId(Long novelId) 
    {
        this.novelId = novelId;
    }

    public Long getNovelId() 
    {
        return novelId;
    }

    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }

    public void setChapterTitle(String chapterTitle) 
    {
        this.chapterTitle = chapterTitle;
    }

    public String getChapterTitle() 
    {
        return chapterTitle;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setSubscribe(Long subscribe) 
    {
        this.subscribe = subscribe;
    }

    public Long getSubscribe() 
    {
        return subscribe;
    }

    public void setWordCount(String wordCount) 
    {
        this.wordCount = wordCount;
    }

    public String getWordCount() 
    {
        return wordCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("novelId", getNovelId())
            .append("orderNum", getOrderNum())
            .append("chapterTitle", getChapterTitle())
            .append("content", getContent())
            .append("subscribe", getSubscribe())
            .append("wordCount", getWordCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
